// 玩家类
/* 
玩家 ：{
    用户名 ：
    英雄： 【】
}

*/
import Hero from './hero.js';
import Skill from './skill.js';
import Skin from './skin.js';
export default class Player{
    constructor(username){
        this.username = username;
        // this.phone
        // this.email
        // 亚瑟的技能 ；
        let yaseSkills = [new Skill("技能一","./sources/skills/16610.png"),new Skill("技能二","./sources/skills/16620.png"),new Skill("技能三","./sources/skills/16630.png")];

        // 亚瑟的皮肤 
        let yaseSkins = [new Skin("经典","./sources/heroes/yase1.png","./sources/skins/301660.png"),new Skin("死亡骑士","./sources/heroes/yase2.png","./sources/skins/301661.png")]


        let yase = new Hero("亚瑟","./sources/heroes/yase1.png","./sources/skins/301660.png",yaseSkills,yaseSkins);

        // 鲁班技能
        let lubanSkills = [new Skill("技能一","./sources/skills/11210.png"),new Skill("技能二","./sources/skills/11220.png"),new Skill("技能三","./sources/skills/11230.png")];

        // 鲁班的皮肤
        let lubanSkins = [new Skin("经典","./sources/heroes/luban1.png","./sources/skins/301120.png"),new Skin("木偶奇遇","./sources/heroes/luban2.png","./sources/skins/301121.png")]

        let luban = new Hero("鲁班","./sources/heroes/luban1.png","./sources/skins/301120.png",lubanSkills,lubanSkins);
        this.heroes = [yase,luban]; // 是玩家的英雄 ；
    }
}